<script type="text/javascript">
	function testConfig() {
		var d = $('#editHotelInfoForm');
		var validate = d.form("validate");
        printLog(validate);
        if (validate) {
       	    printLog(d.form("getData"));
           	$.ajax({
           	  type: 'POST',
           	  url: 'config.action?uploadConfig',
           	  data: d.form("getData"),
           	  dataType:'json',
           	  success: function(data) {
           		  showMsg(data.msg);
           	  }
           	});
        } else {
            return false;
        }
	}
</script>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
		
		<form id="editHotelInfoForm" method="post" action=""  >
		
		<table cellpadding="5">
			<input name="id" type="hidden" value="" />
			<tr>
				<td>项目名称:</td>
				<td>
					<input name="projectName"  class="easyui-validatebox" data-options="required: true" value=""/>
				</td>
			</tr>
			<tr>
				<td>地址唯一码:</td>
				<td>
					<input name="addressKey"  class="easyui-validatebox" data-options="required: true" value=""/>
				</td>
			</tr>
			<tr>
				<td>测试名称:</td>
				<td>
					<input name="testName"  class="easyui-validatebox" data-options="required: true" value=""/>
				</td>
			</tr>
		</table>
		</form>
	</div>
	<div data-options="region:'south',border:false">
		<div style="padding:3px 0;border-top:1px solid #95B8E7;text-align: center;">
			<@eu.linkbutton showName="测试" iconCls="icon-save" onclick="testConfig()"/>
	    </div>
	</div>
</div>


